package com.ls.fw.office.itext.pdf.bean;

public enum Location {

	ALIGN_UNDEFINED(-1),

	/**
	 * A possible value for paragraph alignment. This specifies that the text is
	 * aligned to the left indent and extra whitespace should be placed on the
	 * right.
	 */
	ALIGN_LEFT(0),

	/**
	 * A possible value for paragraph alignment. This specifies that the text is
	 * aligned to the center and extra whitespace should be placed equally on
	 * the left and right.
	 */
	ALIGN_CENTER(1),

	/**
	 * A possible value for paragraph alignment. This specifies that the text is
	 * aligned to the right indent and extra whitespace should be placed on the
	 * left.
	 */
	ALIGN_RIGHT(2),

	/**
	 * A possible value for paragraph alignment. This specifies that extra
	 * whitespace should be spread out through the rows of the paragraph with
	 * the text lined up with the left and right indent except on the last line
	 * which should be aligned to the left.
	 */
	ALIGN_JUSTIFIED(3),

	/**
	 * A possible value for vertical alignment.
	 */

	ALIGN_TOP(4),

	/**
	 * A possible value for vertical alignment.
	 */

	ALIGN_MIDDLE(5),

	/**
	 * A possible value for vertical alignment.
	 */

	ALIGN_BOTTOM(6),

	/**
	 * A possible value for vertical alignment.
	 */
	ALIGN_BASELINE(7),

	/**
	 * Does the same as ALIGN_JUSTIFIED but the last line is also spread out.
	 */
	ALIGN_JUSTIFIED_ALL(8);
	
	private int value = -1;
	
	Location(int value){
		this.setValue(value);
	}
	
	public void setValue(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
}
